Read me file for Pitfalls in comparing Paris pledges
# ======


This directory contains the code and data necessary to replicate the analyses conducted in 'Pitfalls in comparing Paris pledges'.

The statistical analyses are performed in Stata. Figures are created in R. 

A draft/pre-print of the article is included. Please see the publisher's website for the final version (which is open access).

Data sources
# ======


Data in the 'data' folder:

1. 'Drummond, Hall, Sauer & Palmer CC 2018 Climate.dta'
Original replication data from Drummond et al. 
https://doi.org/10.1007/s10584-018-2230-2

2. 'Lee et al. NCC 2015.dta'
Original replication data from Lee et al. (main independent variable in Drummond et al.)
https://doi.org/10.1038/nclimate2728

3. 'primap-1988panel.dta'
GHG emissions data from Postdam Institute for Climate Impact Research
http://doi.org/10.5880/PIK.2018.003
https://doi.org/10.5194/essd-8-571-2016

4. 'targets.dta'
Combines data from the World Resources Institute and Climate Watch on national GHG targets
https://www.climatewatchdata.org/
http://www.wri.org/resources/data-sets/cait-paris-contributions-data

5. 'dhsp-v4-july.dta'
This is the final data used in the analysis. A merged data file of the above. It is created by 'dhsp-v4-analysis.do'


Analysis scripts
# ======


The Stata code is in the 'code' folder, titled 'dhsp-v4-analysis.do'. Users should set their working directory to the main directory. 

The R code is in the 'code' folder, titled 'dhsp-figures.R'. Users should set their working directory to the main directory. 


